import React from 'react';
import {connect} from 'dva';
import withRouter from 'umi/withRouter';
import {Layout} from '../../../components';
import { Card} from 'antd';
import styles from './index.less';

const {DescriptionList} =Layout
const { Description } = DescriptionList;
function User({children, user, dispatch, location, history}) {
    return (
        <div className={`padding10 ${styles.user}`}>
            <Card title=""  style={{marginBottom:10}} bordered={false}>
                <div className={styles.userHead}>
                    <div className={styles.userIcon}>
                        <img src={require('../../../assets/404.png')} alt=""/>
                    </div>
                    <div className={styles.userInfor}>
                        <div>
                            王闯 （1851212121）
                        </div>
                        <div className={styles.edit}>
                            <a href="">编辑资料</a>
                        </div>
                        <div>
                            用户积分：
                            <b className="red">100</b>
                        </div>
                    </div>
                </div>
            </Card>
            <Card title=""  style={{marginBottom:10}} bordered={false}>
                <DescriptionList title="订单信息" col={8}>
                    <Description term="商家">XS123413234</Description>
                    <Description term="姓名">2018-10-30 12:35:21</Description>
                </DescriptionList>
            </Card>
            <Card title=""  style={{marginBottom:10}} bordered={false} className={styles.ad}>
                <img src={require('../../../assets/404.png')} alt=""/>
                <img src={require('../../../assets/404.png')} alt=""/>
            </Card>
        </div>
    )
}

export default withRouter(connect()(User));
